import React from 'react';
import ReactDOM from 'react-dom';

import { Provider } from 'react-redux';

import store from './app/store';

import Counter from './wrapper/counter';
import Cart from './wrapper/cart';

ReactDOM.render(
  <Provider store={store}>
    <Counter></Counter>
    <Cart></Cart>
  </Provider>,
  document.getElementById('root')
);

// 阮一峰计数器案例:
// https://github.com/jackielii/simplest-redux-example/blob/master/index.js
// 博客地址:
// https://www.ruanyifeng.com/blog/2016/09/redux_tutorial_part_three_react-redux.html